package com.youxuit.youxu.kecheng.threadPool;

public class ThreadTest {
    //线程创建方式-继承thread类
    public  static class MyThread extends Thread{
        @Override
        public void run() {
            System.out.println("this is a child thread----继承thread类");
        }
    }


    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
    }

}
